import { APPCONFIG } from '../constants/appconfig'
import { openGetJSON } from "../service/request";
import Taro from "@tarojs/taro";


export const getAppconfig = async () => {
  const { data } = await openGetJSON({ module: 'UserService.appconfig' });
  if (data && data.state === '000') {
    return {
      type: APPCONFIG,
      ...data.data
    }
  } else {
    Taro.showToast({
      title: data.msg,
      icon:'none'
    })
  }
}
